package com.castle.fortress.admin.form.dto;

import com.castle.fortress.admin.core.constants.GlobalConstants;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 查询条件对象
 * @author castle
 */
@Data
@ApiModel(value = "查询条件对象", description = "查询条件对象")
	public class QueryConditionDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@ApiModelProperty(value = "表单ID")
	@JsonProperty("tbId")
	private String tbId;
	@ApiModelProperty(value = "页面下标")
	@JsonProperty("current")
	private Integer current = GlobalConstants.DEFAULT_PAGE_INDEX;
	@ApiModelProperty(value = "页面记录数")
	@JsonProperty("size")
	private Integer size = GlobalConstants.DEFAULT_PAGE_SIZE;
	@ApiModelProperty(value = "分页起始值")
	@JsonProperty("offset")
	private Integer offset;
	@ApiModelProperty(value = "字段查询条件")
	@JsonProperty("conditionDtoList")
	private List<ColConditionDto> conditionDtoList;
	/**
	 * true 分页；false 不分页
	 */
	@ApiModelProperty(value = "分页标识")
	@JsonProperty("pageFlag")
	private Boolean pageFlag = false;
	@ApiModelProperty(value = "字段查询条件JSON串")
	@JsonProperty("conditionJson")
	private String conditionJson;
	/**
	 * 关联用户表标识
	 */
	private Boolean userFlag=false;
	/**
	 * 依据创建时间排序标识
	 */
	private Boolean orderFlag=false;

}
